package com.yj.cmp.sdk.fusioncompute.storage.storage;

import com.yj.cmp.sdk.fusioncompute.storage.storage.vo.StorageDetailVo;
import com.yj.cmp.sdk.fusioncompute.storage.storage.vo.StorageListVo;
import org.springframework.stereotype.Service;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.HeaderMap;
import retrofit2.http.Path;
import retrofit2.http.QueryMap;

import java.util.Map;

/**
 * @author Harvey_Yang
 * @date 2021/8/30 17:57
 */
@Service
public interface FcStorageService {

    @GET("storageresources")
    Call<StorageListVo> storageList(@HeaderMap Map<String, Object> headerMap, @QueryMap Map<String, Object> queryParam);

    @GET("storageresources/{storageId}")
    Call<StorageDetailVo> storageDetail(@HeaderMap Map<String, Object> headerMap, @Path("storageId") String storageId);
}
